home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / TOOLOW.ARJ / TUTOR.HPP < prev    next >
C/C++ Source or Header  |  1992-04-22  |  3KB  |  91 lines

  1. //***************************************************************************
  2. // tutor.hpp - Application Class Definitions
  3. // 4/22/92 - 6:24:06pm
  4. // John Doe
  5. //***************************************************************************
  6.  
  7.  
  8. _CLASSDEF(Main)
  9. class Main : public TWindow 
  10. {
  11. public:
  12.     Main(PTWindowsObject AParent);
  13.  
  14.     virtual void CloseWindow();
  15.     virtual void SetupWindow();
  16.     virtual LPSTR GetClassName() {return "Main";}
  17.     virtual void GetWindowClass(WNDCLASS&);
  18.     virtual void MsgMainApp(RTMessage Msg) = [CM_FIRST+CM_MAINAPP];
  19.     virtual void MsgMainDialog(RTMessage Msg) = [CM_FIRST+CM_MAINDIALOG];
  20.     virtual void MsgMainWindow(RTMessage Msg) = [CM_FIRST+CM_MAINWINDOW];
  21.     virtual void MsgNew(RTMessage Msg) = [CM_FIRST+CM_NEW];
  22.     virtual void MsgOpen(RTMessage Msg) = [CM_FIRST+CM_OPEN];
  23.     virtual void MsgSave(RTMessage Msg) = [CM_FIRST+CM_SAVE];
  24.     virtual void MsgExit(RTMessage Msg) = [CM_FIRST+CM_EXIT];
  25.     virtual void MsgAbout(RTMessage Msg) = [CM_FIRST+CM_ABOUT];
  26. };
  27. _CLASSDEF(NewWin)
  28. class NewWin : public TWindow 
  29. {
  30. public:
  31.     NewWin(PTWindowsObject AParent);
  32.  
  33.     virtual void CloseWindow();
  34.     virtual void SetupWindow();
  35.     virtual LPSTR GetClassName() {return "NewWin";}
  36.     virtual void GetWindowClass(WNDCLASS&);
  37. };
  38. _CLASSDEF(About)
  39. class About : public TDialog 
  40. {
  41.     char szWorkStr[81], *p;        // Work Buffer
  42. public:
  43.     About(PTWindowsObject AParent, Pchar DlgName);
  44.  
  45.     virtual void CloseWindow(int ARetValue);
  46.     virtual void SetupWindow();
  47.     virtual BOOL CanClose();
  48. };
  49.  
  50. _CLASSDEF(Address)
  51. class Address : public TDialog 
  52. {
  53.     char szWorkStr[81], *p;        // Work Buffer
  54.     PTEdit Lname, Name, Title, Coname, Street1, Street2, City, State, Zip, Bphone,
  55. Hphone, Fax, Comments;
  56.     PTRadioButton Male, Female;
  57.     PTComboBox Addtype;
  58. public:
  59.     Address(PTWindowsObject AParent, Pchar DlgName);
  60.  
  61.     virtual void CloseWindow(int ARetValue);
  62.     virtual void SetupWindow();
  63.     virtual BOOL CanClose();
  64.     virtual void MsgSearch(RTMessage Msg) = [ID_FIRST+ID_SEARCH];
  65. };
  66.  
  67. _CLASSDEF(Search)
  68. class Search : public TDialog 
  69. {
  70.     char szWorkStr[81], *p;        // Work Buffer
  71.     PTListBox List;
  72. public:
  73.     Search(PTWindowsObject AParent, Pchar DlgName);
  74.  
  75.     virtual void CloseWindow(int ARetValue);
  76.     virtual void SetupWindow();
  77.     virtual BOOL CanClose();
  78. };
  79.  
  80.  
  81. class TutorApp : public TApplication {
  82. public:
  83.     TutorApp(LPSTR AName, HANDLE hInstance, 
  84.           HANDLE hPrevInstance, LPSTR lpCmd,
  85.           int nCmdShow)
  86.             : TApplication(AName, hInstance, 
  87.                    hPrevInstance, lpCmd, nCmdShow) {};
  88.   
  89.     virtual void InitMainWindow();
  90. };
  91.